package com.wtwd.campus.constant;

public enum OrgTypeEnum {
    ORG("1"),
    ORG_SCHOOL("2"),
    ORG_GRADE("3"),
    ORG_CLASS("4");
    private String type;

    OrgTypeEnum(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public static OrgTypeEnum getOryType(String type) {
        for (OrgTypeEnum value : OrgTypeEnum.values()) {
            if (value.getType().equalsIgnoreCase(type)) {
                return value;
            }
        }
        return null;
    }
}
